package demo3;

public class TestStudent {
    public static void main(String[] args) {
        /*Student student=new Student();
        //student.name;因为name被private修饰
        student.setName("张三");
        String name=student.getName();
        System.out.println(name);

        System.out.println("===========");
        //Student student1=new Student("张三",10,"20024");
        *//*
        因为没有实现Student带参数的构造方法，所以上一行代码是出错的。
         *//*
        student.className="1班";*/
        Student.className="1班";


    }
}
